package com.usac.arqui1.grupo2.proyecto1.menufragments;

import com.usac.arqui1.grupo2.proyecto1.R;

import android.annotation.SuppressLint;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.Spinner;
import android.widget.TextView;

public class Editor extends Fragment {
	
	Spinner spntam;
	Spinner spntipo;
	
	ArrayAdapter<String> adapter;
	String arrTamas[] = {"pequeño","mediano","normal","grande"};
	String arrTipos[] = { "tipo1","tipo2","tipo3","tipo4"};

	public Editor() {

	}

	@Override
	@SuppressLint("CutPasteId")
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle saveInstanceState) {
				

		View v = inflater.inflate(R.layout.fragment_principal_editor,
				container, false);

		ArrayAdapter<CharSequence> adapter = new ArrayAdapter<CharSequence>(
				this.getActivity(), android.R.layout.simple_spinner_item);
		adapter.setDropDownViewResource(android.R.layout.simple_list_item_checked);

		String val = "";
		for (int i = 0; i < arrTamas.length; i++) {
			val = arrTamas[i];
			adapter.add(val);
		}
		spntam = (Spinner) v.findViewById(R.id.spntam);
		spntam.setAdapter(adapter);

//		ArrayAdapter<CharSequence> adapter2 = new ArrayAdapter<CharSequence>(
//				this.getActivity(), android.R.layout.simple_spinner_item);
//		adapter2.setDropDownViewResource(android.R.layout.select_dialog_singlechoice);
//
//		for (int i = 0; i < spinnerfondos.length; i++) {
//			val = spinnerletras[i];
//			adapter2.add(val);
//		}
//
//		spntipo = (Spinner) v.findViewById(R.id.spntipo);
//		spfondo.setAdapter(adapter2);

		return v;
	}

}
